package com.daoliuhe.scaffold.mapper;

import com.daoliuhe.scaffold.model.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(String id);
    
    Role selectByName(String name);

    int updateByPrimaryKeySelective(Role role);

    int updateByPrimaryKey(Role record);
    
    List<Role> getPageData(Role role);
    
    int getPageCount(Role role);
}